﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using Microsoft.Phone.Controls;
using TestApp.Collections;

namespace TestApp
{
    public class TestItem
    {
        public TestItem()
        {
            Items = new PairsCollection();
        }

        public string Name { get; set; }

        public PairsCollection Items { get; private set; }
    }

    public partial class MainPage : PhoneApplicationPage
    {
        // 构造函数
        public MainPage()
        {
            InitializeComponent();

            var t = HTMLConverter.HtmlConverter.HtmlToXaml(@"<p><a href=""http://www.ifanr.com/248861/podcast-ios6"" rel=""attachment wp-att-248863"" target=""_blank""><img alt=""podcast-ios6"" src=""http://cdn.ifanr.cn/wp-content/uploads/2013/02/podcast-ios6.jpg"" width=""600"" height=""375""></a></p>
<p>如果说苹果官方有什么糟糕的 iOS 应用，可能莫过于 Podcast。这个从 iTunes store 分化出的应用在美国区近 6000 个评分中，平均仅 1.5 星。<a href=""http://www.buzzfeed.com/jwherrman/apples-podcast-disaster"" target=""_blank"">Buzzfeed 近日一篇文章指出</a>，不够友好的用户界面、匪夷所思的交互形式，以及持续不断的崩溃、删除 bug，让用户对该应用怨声载道。有用户毫不留情地指出，“说它不够友好已经是非常保守了”，还有用户抱怨称“这个应用让我流量计划超了 40 美元。”</p>
<p>而最不留情面的评价可能是——</p>
<blockquote><p>“比 iOS 自带地图还垃圾。”<span></span></p></blockquote>
<p>在线流媒体广播起源于美国，早在 2005 年苹果注册“Podcast”商标前就存在这种形式。就像博客（Blog）颠覆了被动接受文字信息的方式一样，Podcast 颠覆了被动收听广播的方式，使听众成为主动参与者。有人说，播客可能会像博客一样，带来大众传媒的又一场革命。</p>
<p>2005 年 6 月 28 日，苹果将 Podcast 功能集成进 iTunes，掀起一场 Podcast 的高潮。在去年 7 月，苹果将移动版 iTunes store 中的 Podcast 分拆出来，推出了集订阅、播放、管理等功能于一体的独立应用。</p>
<p>从一个隐藏的功能升华为一个独立应用，此举得到了 Podcast 社区特别是 Podcast 拥趸的支持，这意味着越来越多的听众会走进 Podcast 的世界。</p>
<p>然而，噩梦就此展开。</p>
<p><a href=""http://www.ifanr.com/248861/podcast-ui"" rel=""attachment wp-att-248869"" target=""_blank""><img alt=""podcast ui"" src=""http://cdn.ifanr.cn/wp-content/uploads/2013/02/podcast-ui.jpg"" width=""580"" height=""422""></a></p>
<p>应用发布不久，诸多问题开始显露，比如下载出错的文件无法删除问题，Business insider 在一篇评测中一针见血地指出，“希望苹果可以修复 Podcast 应用中的所有 bug，因为从 iTunes 中的移除意味着强制用户使用这个应用，而这就是一场灾难。”</p>
<p>但六个月之后，问题依然没有得到解决。这些问题不仅影响到用户的正常使用，还对 Podcast 制作者造成难以估量的损失。</p>
<p>“当这个应用发布之初，我的下载量急剧增加，然而，这个早期信号完全是误导，下载激增后来证明完全是应用 bug 导致的结果，而非实际用户的增加。这个 bug 致使用户无需同意便可以下载，这不仅导致听众数据流量的爆表，还影响了发布者托管计划。”一个不愿透露姓名的 Podcast 制作者抱怨称，他当月的账单高到令人咋舌。</p>
<p>尽管并非 Podcast 之过，那些不明真相的听众却很容易迁怒于此。对制作者的消极影响难以估量。</p>
<p>对于苹果而言，几个 bug 影响的可能是一个生态，因为苹果一直是 Podcast 的重要推动者。有制作者表示，至少对于其节目而言，80% 的听众使用苹果设备。</p>
<p>Buzzfeed 认为，对比前后，苹果的行为着实令人费解——亲手将这个生态建立起来，如今却对其漠不关心。</p>
<p>
<a href=""http://www.ifanr.com"" target=""_blank"">爱范儿 · Beats of Bits</a> |
<a href=""http://www.ifanr.com/248861"" target=""_blank"">原文链接</a> ·
<a href=""http://www.ifanr.com/248861#comments"" target=""_blank"">查看评论</a> ·
<a href=""http://www.weibo.com/ifanr"" target=""_blank"">新浪微博</a> ·
<a href=""http://www.ifanr.com/weixin"" target=""_blank"">微信订阅</a> ·
<a href=""http://bbs.ifanr.com/"" target=""_blank"">加入爱范社区！</a> 
</p>

<br>
<div style=""text-align:center;border-top:1px dotted #ccc"">
</div> <img src=""http://ifanr.feedsportal.com/c/33866/f/642084/s/248861/mf.gif"" border=""0""><br><br><a href=""http://da.feedsportal.com/r/144540365956/u/362/f/642084/c/33866/s/248861/a2.htm"" target=""_blank""><img src=""http://da.feedsportal.com/r/144540365956/u/362/f/642084/c/33866/s/248861/a2.img"" border=""0"" style=""display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;"" width=""0"" height=""0""></a><img width=""1"" height=""1"" src=""http://pi.feedsportal.com/r/144540365956/u/362/f/642084/c/33866/s/248861/a2t.img"" border=""0"">    <div style=""border:1px solid #ccc;font-size:14px;margin:27px auto;font-family:Arial"">
        <div style=""overflow:hidden""> <a href=""http://www.ifanr.com/author/hezongcheng"" style=""color:#000;text-decoration:none"" target=""_blank""><img src=""http://cdn.ifanr.cn/wp-content/uploads/2012/09/hengzongcheng.jpg"" width=""50"" height=""50"" style=""display:block;float:left;padding:0;margin:15px""></a>
            <div style=""text-align:left;line-height:23px;margin-left:80px"">
                <div style=""padding:10px 10px 10px 0"">
                    <div style=""margin:0;font-size:14px""><strong><a href=""http://www.ifanr.com/author/hezongcheng"" style=""color:#000;text-decoration:none"" target=""_blank"">何宗丞 (Jason Ho)</a></strong></div>
                    <div style=""font-size:13px;line-height:20px"">新媒介的拥趸，相信“ 媒介即讯息 ”，关注媒介技术的力量。致力于 iSeed 和 90?  访谈栏目的建设。</div>
                </div>
            </div>
        </div>
        <div style=""text-align:right;border-top:1px dotted #ccc;padding:2px 10px;font-size:12px"">
            <div>
                                                                            <a href=""mailto:hezongcheng1025@gmail.com"" style=""margin-right:14px;text-decoration:none"" target=""_blank"">邮箱</a>

                            
                                                                            <a href=""http://twitter.com/hezongcheng"" target=""_blank"">Twitter</a>

                            
                                                                            <a href=""http://weibo.com/hezongcheng"" style=""margin-right:14px;text-decoration:none"" target=""_blank"">新浪微博</a>

                            
                                                                            <a href=""https://plus.google.com/118051041556695317207"" style=""margin-right:14px;text-decoration:none"" target=""_blank"">Google+</a>

                            
                            </div>
        </div>
    </div>");

            var boxt = XamlReader.Load(t) as StackPanel;
            if (boxt != null)
            {
                ContentPanel.Children.Add(boxt);
            }

            var text = HTMLConverter.HtmlConverter.HtmlToXaml(@"<p><a href=""http://livesino.net/images/farm24/f5207e601866_B07D/windows-phone-8-jump-start.jpg"" rel=""ignition"" target=""_blank""><img title=""开发培训课程：Windows Phone 8 Jump Start"" style=""display:inline"" alt=""开发培训课程：Windows Phone 8 Jump Start"" src=""http://livesino.net/images/farm24/f5207e601866_B07D/windows-phone-8-jump-start_thumb.jpg"" width=""640"" height=""360""></a></p>
<p>Windows Phone 团队已经<a title=""Windows Phone 8 Jump Start Training is here"" href=""http://blogs.windows.com/windows_phone/b/wpdev/archive/2012/12/06/windows-phone-8-jump-start-training-is-here.aspx"" target=""_blank"">发布了</a>上周 20 部 Windows Phone 8 Jump Start 开发培训课程的视频内容，这是一套快节奏的 WP8 开发学习视频，包括 WP8 开发概述、设计、Lifecycle（<a title=""Windows Phone 8 改进的多任务“不重新加载应用”"" href=""http://livesino.net/archives/4702.live"" target=""_blank"">快速应用切换</a>）、文件和存储、磁贴和锁屏提醒、推送、App to App 通讯、网络通讯、传感器和蓝牙、语音识别、<a title=""NFC 世界大会：微软 Windows Phone 8 钱包中心和 NFC"" href=""http://livesino.net/archives/4539.live"" target=""_blank"">钱包</a>、地图和位置、应用内购买、Windows Phone Store、企业应用架构、跨平台开发等内容。</p>
<p>Windows Phone 8 Jump Start 课程完整的列表可以在<a title=""开发培训课程：Windows Phone 8 Jump Start"" href=""http://livesino.net/archives/4856.live"" target=""_blank"">下面的列表</a>查看，可在线观看、下载高清视频或音频，每部约为 30 分钟至 1 小时：</p>
<p><span></span>
</p><ul>
<li>Mod 01a: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-01a-Introducing-Windows-Phone-8-Development-Part-1"" target=""_blank"">Introducing Windows Phone 8 Development Part 1</a>  </li>
<li>Mod 01b: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-01b-Introducing-Windows-Phone-8-Development-Part-2"" target=""_blank"">Introducing Windows Phone 8 Development Part 2</a>  </li>
<li>Mod 02: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-02-Designing-Windows-Phone-8-Apps"" target=""_blank"">Designing Windows Phone 8 Apps</a>  </li>
<li>Mod 03: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-03-Building-Windows-Phone-8-Apps"" target=""_blank"">Building Windows Phone 8 Apps</a>  </li>
<li>Mod 04: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-04-Files-and-Storage-on-Windows-Phone-8"" target=""_blank"">Files and Storage on Windows Phone 8</a>  </li>
<li>Mod 05: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-05-Windows-Phone-8-Application-Lifecycle"" target=""_blank"">Windows Phone 8 Application Lifecycle</a>  </li>
<li>Mod 06: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-06-Background-Agents"" target=""_blank"">Background Agents</a>  </li>
<li>Mod 07: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-07-Tiles-and-Lock-Screen-Notifications"" target=""_blank"">Tiles and Lock Screen Notifications</a>  </li>
<li>Mod 08: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-08-Push-Notifications"" target=""_blank"">Push Notifications</a>  </li>
<li>Mod 09: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-09-Using-Phone-Resources-in-Windows-Phone-8"" target=""_blank"">Using Phone Resources in Windows Phone 8</a>  </li>
<li>Mod 10: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-10-App-to-App-Communication-in-Windows-Phone-8"" target=""_blank"">App to App Communication in Windows Phone 8</a>  </li>
<li>Mod 11: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-11-Network-Communication-in-Windows-Phone-8"" target=""_blank"">Network Communication in Windows Phone 8</a>  </li>
<li>Mod 12: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-12-Proximity-Sensors-and-Bluetooth-in-Windows-Phone-8"" target=""_blank"">Proximity Sensors and Bluetooth in Windows Phone 8</a>  </li>
<li>Mod 13: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-13-Speech-Input-in-Windows-Phone-8"" target=""_blank"">Speech Input in Windows Phone 8</a>  </li>
<li>Mod 14: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-14-Maps-and-Location-in-Windows-Phone-8"" target=""_blank"">Maps and Location in Windows Phone 8</a>  </li>
<li>Mod 15: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-15-Wallet-Support"" target=""_blank"">Wallet Support</a>  </li>
<li>Mod 16: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-16-In-App-Purchasing"" target=""_blank"">In-App Purchasing</a>  </li>
<li>Mod 17: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-17-The-Windows-Phone-Store"" target=""_blank"">The Windows Phone Store</a>  </li>
<li>Mod 18: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-18-Enterprise-App-Architecture"" target=""_blank"">Enterprise App Architecture</a>  </li>
<li>Mod 19: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-19-Windows-Phone-8-and-Windows-8-Cross-Platform-Develop"" target=""_blank"">Windows Phone 8 and Windows 8 Cross Platform Development</a>  </li>
<li>Mod 20: <a href=""http://channel9.msdn.com/posts/Building-Apps-for-Windows-Phone-8-Jump-Start-20-Mobile-Web"" target=""_blank"">Mobile Web</a></li>
</ul>
<table cellspacing=""0"" cellpadding=""3"" border=""0"" style=""clear:both"">
    
    <tbody><tr>
        <td colspan=""5""><b><font size=""-1"" style=""display:block!important;padding:20px 0 5px!important""></font></b></td>
    </tr>
    
        <tr>
                <td width=""119"" valign=""top"" style=""padding:5px!important;margin:0!important"">
                    <a title=""诺基亚确认 PureView 将带至未来 Lumia Windows Phone"" style=""text-decoration:none!important"" href=""http://app.wumii.com/ext/redirect?url=http%3A%2F%2Flivesino.net%2Farchives%2F4203.live&amp;from=http%3A%2F%2Flivesino.net%2Farchives%2F4856.live"" target=""_blank"">
                        <img style=""margin:0!important;padding:2px!important;border:1px solid #ffffff!important;width:113px!important;height:113px!important"" src=""http://static.wumii.cn/site_images/2012/12/08/64409387.jpg"" width=""113px"" height=""113px""><br>
                        <font size=""-1"" color=""#333333"" style=""display:block!important;line-height:15px!important;width:119px!important;font:12px/15px arial!important;height:45px!important;margin:3px 0 0 0!important;padding:0!important;overflow:hidden!important"">诺基亚确认 PureView 将带至未来 Lumia Windows Phone</font>
                    </a>
                </td>
                <td width=""119"" valign=""top"" style=""padding:5px!important;margin:0!important;border-left:1px solid #ffffff!important"">
                    <a title=""“黑 Android 手机，赢 Windows Phone 手机”活动归来，但……"" style=""text-decoration:none!important"" href=""http://app.wumii.com/ext/redirect?url=http%3A%2F%2Flivesino.net%2Farchives%2F4845.live&amp;from=http%3A%2F%2Flivesino.net%2Farchives%2F4856.live"" target=""_blank"">
                        <img style=""margin:0!important;padding:2px!important;border:1px solid #ffffff!important;width:113px!important;height:113px!important"" src=""http://static.wumii.cn/site_images/2012/12/06/64083967.png"" width=""113px"" height=""113px""><br>
                        <font size=""-1"" color=""#333333"" style=""display:block!important;line-height:15px!important;width:119px!important;font:12px/15px arial!important;height:45px!important;margin:3px 0 0 0!important;padding:0!important;overflow:hidden!important"">“黑 Android 手机，赢 Windows Phone 手机”活动归来，但……</font>
                    </a>
                </td>
                <td width=""119"" valign=""top"" style=""padding:5px!important;margin:0!important;border-left:1px solid #ffffff!important"">
                    <a title=""Windows Phone Store 支持下载应用 XAP 手动安装"" style=""text-decoration:none!important"" href=""http://app.wumii.com/ext/redirect?url=http%3A%2F%2Flivesino.net%2Farchives%2F4823.live&amp;from=http%3A%2F%2Flivesino.net%2Farchives%2F4856.live"" target=""_blank"">
                        <img style=""margin:0!important;padding:2px!important;border:1px solid #ffffff!important;width:113px!important;height:113px!important"" src=""http://static.wumii.cn/site_images/2012/12/01/63272960.png"" width=""113px"" height=""113px""><br>
                        <font size=""-1"" color=""#333333"" style=""display:block!important;line-height:15px!important;width:119px!important;font:12px/15px arial!important;height:45px!important;margin:3px 0 0 0!important;padding:0!important;overflow:hidden!important"">Windows Phone Store 支持下载应用 XAP 手动安装</font>
                    </a>
                </td>
                <td width=""119"" valign=""top"" style=""padding:5px!important;margin:0!important;border-left:1px solid #ffffff!important"">
                    <a title=""AdDuplex 数据：Windows Phone 手机细分份额"" style=""text-decoration:none!important"" href=""http://app.wumii.com/ext/redirect?url=http%3A%2F%2Flivesino.net%2Farchives%2F4832.live&amp;from=http%3A%2F%2Flivesino.net%2Farchives%2F4856.live"" target=""_blank"">
                        <img style=""margin:0!important;padding:2px!important;border:1px solid #ffffff!important;width:113px!important;height:113px!important"" src=""http://static.wumii.cn/site_images/2012/12/04/63640501.jpg"" width=""113px"" height=""113px""><br>
                        <font size=""-1"" color=""#333333"" style=""display:block!important;line-height:15px!important;width:119px!important;font:12px/15px arial!important;height:45px!important;margin:3px 0 0 0!important;padding:0!important;overflow:hidden!important"">AdDuplex 数据：Windows Phone 手机细分份额</font>
                    </a>
                </td>
                <td width=""119"" valign=""top"" style=""padding:5px!important;margin:0!important;border-left:1px solid #ffffff!important"">
                    <a title=""预告：HTC Windows Phone 8X/8S 发布会于 12 月 3 日召开，售价提前公开"" style=""text-decoration:none!important"" href=""http://app.wumii.com/ext/redirect?url=http%3A%2F%2Flivesino.net%2Farchives%2F4825.live&amp;from=http%3A%2F%2Flivesino.net%2Farchives%2F4856.live"" target=""_blank"">
                        <img style=""margin:0!important;padding:2px!important;border:1px solid #ffffff!important;width:113px!important;height:113px!important"" src=""http://static.wumii.cn/site_images/2012/12/02/63369425.png"" width=""113px"" height=""113px""><br>
                        <font size=""-1"" color=""#333333"" style=""display:block!important;line-height:15px!important;width:119px!important;font:12px/15px arial!important;height:45px!important;margin:3px 0 0 0!important;padding:0!important;overflow:hidden!important"">预告：HTC Windows Phone 8X/8S 发布会于 12 月 3 日召开，售价提前公开</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan=""5"" align=""right"">
            <a style=""text-decoration:none!important"" href=""http://www.wumii.com/widget/relatedItems"" title=""无觅相关文章插件"" target=""_blank"">
                <font size=""-1"" color=""#bbbbbb"" style=""display:block!important;font-family:arial!important;padding:5px 0!important;font-size:12px!important;color:#bbb!important"">无觅</font>
            </a>
        </td>
    </tr>
</tbody></table><p>?2012 <a href=""http://livesino.net"" target=""_blank"">LiveSino.net</a> | <a href=""http://livesino.net/archives/4856.live"" title=""开发培训课程：Windows Phone 8 Jump Start"" target=""_blank"">阅读原文</a> | <a href=""http://livesino.net/archives/4856.live#comments"" title=""开发培训课程：Windows Phone 8 Jump Start 的评论"" target=""_blank"">添加评论</a></p><p></p>");
            var box = XamlReader.Load(text) as StackPanel;
            if (box != null)
            {
                ContentPanel.Children.Add(box);
            }
        }
    }
}